const Koa = require('koa');
const koaStatic = require('koa-static');
const {resolve} = require('path');

const koa = new Koa();

// 静态资源访问
koa.use(koaStatic(resolve(__dirname, '')));

koa.listen(7777, (err) => {
  if(err) {
    console.log(err);
    return
  }
  console.log('port:7777');
});